package com.icart.entities;

import javax.persistence.*;
import java.sql.Date;

@Entity
@Table(name = "bi_chnstaff", schema = "amp", catalog = "")
public class BiChnstaffEntity {
    private long staffid;
    private Long chnid;
    private String staffname;
    private String fm;
    private String mobile;
    private String post;
    private Date birdday;
    private Date comeday;
    private String idcardno;
    private String addr;
    private String email;
    private String wxid;
    private Integer salary;
    private Integer pointdisclimit;
    private Integer cleardisclimit;
    private Integer paydisclimit;
    private Integer status;
    private Date statustime;

    @Id
    @Column(name = "staffid")
    public long getStaffid() {
        return staffid;
    }

    public void setStaffid(long staffid) {
        this.staffid = staffid;
    }

    @Basic
    @Column(name = "chnid")
    public Long getChnid() {
        return chnid;
    }

    public void setChnid(Long chnid) {
        this.chnid = chnid;
    }

    @Basic
    @Column(name = "staffname")
    public String getStaffname() {
        return staffname;
    }

    public void setStaffname(String staffname) {
        this.staffname = staffname;
    }

    @Basic
    @Column(name = "fm")
    public String getFm() {
        return fm;
    }

    public void setFm(String fm) {
        this.fm = fm;
    }

    @Basic
    @Column(name = "mobile")
    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Basic
    @Column(name = "post")
    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    @Basic
    @Column(name = "birdday")
    public Date getBirdday() {
        return birdday;
    }

    public void setBirdday(Date birdday) {
        this.birdday = birdday;
    }

    @Basic
    @Column(name = "comeday")
    public Date getComeday() {
        return comeday;
    }

    public void setComeday(Date comeday) {
        this.comeday = comeday;
    }

    @Basic
    @Column(name = "idcardno")
    public String getIdcardno() {
        return idcardno;
    }

    public void setIdcardno(String idcardno) {
        this.idcardno = idcardno;
    }

    @Basic
    @Column(name = "addr")
    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    @Basic
    @Column(name = "email")
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Basic
    @Column(name = "wxid")
    public String getWxid() {
        return wxid;
    }

    public void setWxid(String wxid) {
        this.wxid = wxid;
    }

    @Basic
    @Column(name = "salary")
    public Integer getSalary() {
        return salary;
    }

    public void setSalary(Integer salary) {
        this.salary = salary;
    }

    @Basic
    @Column(name = "pointdisclimit")
    public Integer getPointdisclimit() {
        return pointdisclimit;
    }

    public void setPointdisclimit(Integer pointdisclimit) {
        this.pointdisclimit = pointdisclimit;
    }

    @Basic
    @Column(name = "cleardisclimit")
    public Integer getCleardisclimit() {
        return cleardisclimit;
    }

    public void setCleardisclimit(Integer cleardisclimit) {
        this.cleardisclimit = cleardisclimit;
    }

    @Basic
    @Column(name = "paydisclimit")
    public Integer getPaydisclimit() {
        return paydisclimit;
    }

    public void setPaydisclimit(Integer paydisclimit) {
        this.paydisclimit = paydisclimit;
    }

    @Basic
    @Column(name = "status")
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Basic
    @Column(name = "statustime")
    public Date getStatustime() {
        return statustime;
    }

    public void setStatustime(Date statustime) {
        this.statustime = statustime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        BiChnstaffEntity that = (BiChnstaffEntity) o;

        if (staffid != that.staffid) return false;
        if (chnid != null ? !chnid.equals(that.chnid) : that.chnid != null) return false;
        if (staffname != null ? !staffname.equals(that.staffname) : that.staffname != null) return false;
        if (fm != null ? !fm.equals(that.fm) : that.fm != null) return false;
        if (mobile != null ? !mobile.equals(that.mobile) : that.mobile != null) return false;
        if (post != null ? !post.equals(that.post) : that.post != null) return false;
        if (birdday != null ? !birdday.equals(that.birdday) : that.birdday != null) return false;
        if (comeday != null ? !comeday.equals(that.comeday) : that.comeday != null) return false;
        if (idcardno != null ? !idcardno.equals(that.idcardno) : that.idcardno != null) return false;
        if (addr != null ? !addr.equals(that.addr) : that.addr != null) return false;
        if (email != null ? !email.equals(that.email) : that.email != null) return false;
        if (wxid != null ? !wxid.equals(that.wxid) : that.wxid != null) return false;
        if (salary != null ? !salary.equals(that.salary) : that.salary != null) return false;
        if (pointdisclimit != null ? !pointdisclimit.equals(that.pointdisclimit) : that.pointdisclimit != null)
            return false;
        if (cleardisclimit != null ? !cleardisclimit.equals(that.cleardisclimit) : that.cleardisclimit != null)
            return false;
        if (paydisclimit != null ? !paydisclimit.equals(that.paydisclimit) : that.paydisclimit != null) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (statustime != null ? !statustime.equals(that.statustime) : that.statustime != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = (int) (staffid ^ (staffid >>> 32));
        result = 31 * result + (chnid != null ? chnid.hashCode() : 0);
        result = 31 * result + (staffname != null ? staffname.hashCode() : 0);
        result = 31 * result + (fm != null ? fm.hashCode() : 0);
        result = 31 * result + (mobile != null ? mobile.hashCode() : 0);
        result = 31 * result + (post != null ? post.hashCode() : 0);
        result = 31 * result + (birdday != null ? birdday.hashCode() : 0);
        result = 31 * result + (comeday != null ? comeday.hashCode() : 0);
        result = 31 * result + (idcardno != null ? idcardno.hashCode() : 0);
        result = 31 * result + (addr != null ? addr.hashCode() : 0);
        result = 31 * result + (email != null ? email.hashCode() : 0);
        result = 31 * result + (wxid != null ? wxid.hashCode() : 0);
        result = 31 * result + (salary != null ? salary.hashCode() : 0);
        result = 31 * result + (pointdisclimit != null ? pointdisclimit.hashCode() : 0);
        result = 31 * result + (cleardisclimit != null ? cleardisclimit.hashCode() : 0);
        result = 31 * result + (paydisclimit != null ? paydisclimit.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (statustime != null ? statustime.hashCode() : 0);
        return result;
    }
}
